//
//  NetworkManager.h
//  ai2ban
//
//  Created by Heartbeats on 2018/1/21.
//  Copyright © 2018年 mac book pro. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

@interface NetworkManager : AFHTTPSessionManager

+ (instancetype) shareNetwork;

- (void)requestWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                      method: (NSString *)method
                    callBack: (void(^)(id responseObject))callBack;

- (void) uploadImageFile:(NSData *)imageData fileName:(NSString *)fileName url:(NSString *)ulr  callBack: (void (^)(id responseObject))callBack;
@end
